---
icon: FilesIcon
---

import { ExampleCode } from 'components/example-code'

# Get Posts and Their Tags

The following code snippet demonstrates how to retrieve all posts along with
their associated tags.

<ExampleCode
  example="blog"
  filePath="app/posts/get-posts.js"
  metadata="/getPageMap/"
/>
